package com.hmys.api.mapper;

import com.hmys.api.model.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WebHouseMapper {
    int deleteByPrimaryKey(Long id);

    int insert(WebHouseWithBLOBs record);

    int insertSelective(WebHouseWithBLOBs record);

    WebHouseWithBLOBs selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(WebHouseWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(WebHouseWithBLOBs record);

    int updateByPrimaryKey(WebHouse record);

    List<WebHouse> selectByBean(WebHouseParam record);

    List<WebHouse> selectByMultipleBean(WebHouseParamMultiple record);

    List<WebHouseSimple> selectSimpleByBean(WebHouseParam record);

    List<WebHouse> selectByCollection(Long userId);

    List<WebHouseWithBLOBs> selectByIds(List<Long> ids);

    int updatePageViewByPrimaryKey(Long id);
}